/*********        表单样式        *********/

@formHeight: 20px;
@btnHeight: 18px;
//  报关单、核注清单、核放单表单样式
.declare-form {
    padding-bottom: 1px;
    padding-right: 1px;
    .iconfont {
        font-size: 14px;
    }
    .ivu-form-item-label {
        padding: 0 3px 0 0;
        line-height: @formHeight;
        height: @formHeight;
    }
    .form-label {
        display: block;
        text-align: right;
        font-size: 12px;
        padding-right: 3px;
        line-height: @formHeight;
        height: @formHeight;
        &.required {
            &::before {
                content: "*";
                display: inline-block;
                margin-right: 2px;
                font-family: SimSun;
                font-size: 12px;
                color: #ed4014;
            }
        }
    }
    .ivu-col {
        margin-bottom: -1px;
        .ivu-form-item-content {
            margin-right: -1px;
        }
        .ivu-btn {
            vertical-align: top;
            width: 100%;
            height: @formHeight - 2;
            line-height: 1.2;
            padding: 0;
            font-size: 12px;
            border-radius: 0;
            margin-top: 1px;
        }
        .morebtn {
            width: @btnHeight;
            height: @btnHeight;
            border-radius: 50%;
        }
    }

    // ivu form 表单样式 修改
    .ivu-form-item {
        margin-bottom: 0;
    }
    .ivu-form-item-content {
        line-height: @formHeight;
    }
    // 表单元素样式修改
    .ivu-date-picker {
        width: 100%;
    }
    .ivu-input-prefix,
    .ivu-input-suffix {
        z-index: 3;
        i {
            line-height: @formHeight;
        }
    }
    .ivu-input-wrapper,
    .ivu-select,
    .ivu-date-picker {
        vertical-align: top;
    }
    .ivu-input , .ivu-input-number {
        height: @formHeight;
        border-radius: 0;
        padding: 0 2px;
        line-height: @formHeight - 2;
        position: relative;
        &:hover,
        &:focus {
            z-index: 2;
        }
    }
    .ivu-input-icon{
        height:20px;
        line-height: 20px;
    }
    .ivu-input-number{
        width: 100%;
        border-color:#b7b7b7;
        margin-top:-2px;
    }
    .ivu-input-number-input{
        padding:0 0;
    }
    .ivu-input-number input{
        height:18px;
        line-height: 18px;
    }
    .ivu-select-placeholder{
        height:18px;
        line-height: 18px;
    }
    .ivu-input-number-handler{
        height:10px;
    }
    .ivu-input-number-handler-up-inner, .ivu-input-number-handler-down-inner{
        height:10px;
        line-height: 10px;
    }
    .ivu-select-single .ivu-select-selection .ivu-select-selected-value{
        height:18px;
        line-height: 18px;
        padding-left:2px !important;
    }
    .ivu-select-single .ivu-select-selection .ivu-select-placeholder{
        height:18px;
        line-height: 18px;
        padding-left:2px !important;
    }
    .requireBG {
        .ivu-select-selection,
        textarea,
        .ivu-input {
            background: #FAFFBD;
        }
        .ivu-input-number-input{
            background: #FAFFBD;
        }
    }
    .ivu-select-disabled .ivu-select-selection,
    .requireBG .ivu-input[disabled] {
        background-color: #f3f3f3;
    }
    .ivu-form-item-error {
        .ivu-input {
            z-index: 1;
            background-color: #fde2e2;
        }
        .ivu-input-number-input{
            z-index: 1;
            background-color: #fde2e2;
        }
        .ivu-select-selection{
            z-index: 1;
            background-color: #fde2e2;
        }
    }
    .ivu-input[disabled]:hover, fieldset[disabled] .ivu-input:hover {
        border-color: #b7b7b7;
    }
}

// 小型表单样式 (商品表单样式)
.form-mini {
    // 隐藏错误
    &.hidden-error {
        .ivu-form-item-error-tip {
            display: none;
        }
        .ivu-form-item {
            margin-bottom: 0;
        }
    }
    .ivu-form-item {
        margin-bottom: 10px;
    }
    .ivu-form-item-label {
        padding: 5px 6px 5px 0;
    }
    .ivu-form-item-content {
        line-height: 22px;
    }
    .ivu-form-item-error-tip {
        padding-top: 0px;
    }
    // Input size=small 样式
    .ivu-input-small {
        border-radius: 0;
        height: 18px;
        line-height: 16px;
        font-size: 12px;
    }
    // Select size=small 样式
    .ivu-select-small {
        .ivu-select-selection {
            border-radius: 0;
            height: 18px;
            line-height: 16px;
            .ivu-select-placeholder,
            .ivu-select-selected-value,
            input {
                height: 16px;
                line-height: 16px;
                font-size: 12px;
            }
        }
    }
    // input size=small 图标样式
    .ivu-input-wrapper-small {
        // 有图标时input padding值
        .ivu-input-icon-normal + .ivu-input {
            padding-right: 28px;
        }
        // 图标大小
        .ivu-input-suffix i{
            width: 24px;
            line-height: 16px;
        }
    }
}
// 必填项的input背景色
.required-input-bg {
    .ivu-select-selection,
    .ivu-input {
        background-color: #FAFFBD;
    }
}
.ivu-select-disabled .ivu-select-selection,
.required-input-bg .ivu-input[disabled] {
    background-color: #f3f3f3;
}


.ivu-form .submit-footer {
    text-align: center;
}

.submit-footer {
    .ivu-btn + .ivu-btn {
        margin-left: 20px;
    }
}
